package yang.itcode.service;

import cn.hutool.json.JSONObject;
import com.github.pagehelper.PageInfo;

public interface ProductService {
    boolean addProduct(JSONObject obj);

    PageInfo<JSONObject> getProductList(Integer pageNum, Integer pageSize, JSONObject condition);

    JSONObject getProductDetail(Integer id);

    boolean updateProduct(JSONObject obj);

    boolean deleteProduct(Integer id);
}
